package com.example.demo01.Entity.webEntity;

import org.springframework.stereotype.Component;

@Component
public class Book {
    //attributes
    private Integer bId;
    private String bName;
    private String bAuthor;
    private String bPublish;
    //Constructors
    public Book(){super();}
    public Book(Integer bId, String bName, String bAuthor, String bPublish) {
        this.bId = bId;
        this.bName = bName;
        this.bAuthor = bAuthor;
        this.bPublish = bPublish;
    }

    //Override
    @Override
    public String toString() {
        return "Book{" +
                "bId=" + bId +
                ", bName='" + bName + '\'' +
                ", bAuthor='" + bAuthor + '\'' +
                ", bPublish='" + bPublish + '\'' +
                '}';
    }

    //Setter
    public void setbId(Integer bId) { this.bId = bId; }
    public void setbName(String bName) { this.bName = bName; }
    public void setbAuthor(String bAuthor) { this.bAuthor = bAuthor; }
    public void setbPublish(String bPublish) { this.bPublish = bPublish; }
    //Getter
    public Integer getbId() { return bId; }
    public String getbName() { return bName; }
    public String getbAuthor() { return bAuthor; }
    public String getbPublish() { return bPublish; }
}
